package com.war.pojo;

//描述分页对象
public class MyPage {
    //定义页码,并赋初值1，表示第一页
    private int page=1;
    //定义每页显示的数据条数,并赋初值10 ,表示每页显示10条数据
    private int row=10;

    //描述查询条件condition的参数
    private String condition;
    //描述查询条件conValue的参数
    private String conValue;
    //描述查询条件日期范围的开始日期和结束日期
    private String startDate;
    private String endDate;

    public String getCondition() {
        if(condition==null){
            return "";
        }
        return condition;
    }

    public void setCondition(String condition) {
        this.condition = condition;
    }

    public String getConValue() {
        if(conValue==null){
            return "";
        }
        return conValue;
    }

    public void setConValue(String conValue) {
        this.conValue = conValue;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getRow() {
        return row;
    }

    public void setRow(int row) {
        this.row = row;
    }

    public String getStartDate() {
        if(startDate==null){
            return "";
        }
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        if(endDate==null){
            return "";
        }
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }
}
